﻿using System.Web.Mvc;

namespace SchoolManagerMVC.Web.Areas.Faculty
{
    public class FacultyAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Faculty";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Faculty_default",
                "Faculty/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );

            context.MapRoute(
                "Faculty",
                "Faculty",
                new { controller = "Home", action = "Index", area = "Faculty" }
            );
        }
    }
}
